package com.fuego.creditsystemcommodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.dto.Result;
import org.example.entity.HouseOrder;

import java.time.LocalDate;
import java.time.LocalDateTime;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface IHouseOrderService extends IService<HouseOrder> {
    Result houseInfo(Long houseId, Long userId, LocalDateTime startDate, LocalDateTime endDate, Integer amount);
    void createHouseOrder(HouseOrder houseOrder, LocalDate checkinDate);

    Result queryAllOrders(Long userId);

    Result refund(Long orderId);
}
